﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PropertyManagement.Core {

    public enum RightLevel {
        CommonUser = 1,
        SystremManager,
        Administrator
    }

    public static class RightLevelHelper {
        public static string GetRightLevelName(this RightLevel rightLevel) {
            switch (rightLevel) {
                case RightLevel.Administrator:
                    return "超级用户";
                case RightLevel.CommonUser:
                    return "普通用户";
                case RightLevel.SystremManager:
                    return "管理员";
                default:
                    return "";
            }
        }
    }

}
